package android.homeaccount;

import android.app.Activity;
import android.content.Intent;
import android.homeaccount.R;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Income2 extends Activity
{
	Button btAddIncome;
	Button btDetailIncome;
	
	String login_username = "";
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.income1);
        
        btAddIncome = (Button) findViewById(R.id.btAddIncome);
        btDetailIncome = (Button) findViewById(R.id.btDetailIncome);
        
        Intent inboundIntent = getIntent();
        login_username = inboundIntent.getExtras().getString("USERNAME");
        
        btAddIncome.setOnClickListener(new OnClickListener()
        {
			@Override
			public void onClick(View v)
			{
				// TODO Auto-generated method stub
				Intent i = new Intent(Income2.this, Income1.class);
				Bundle bundle = new Bundle();
                bundle.putString("USERNAME", login_username);
                i.putExtras(bundle);
				startActivityForResult(i, 0);
			}
        });
        
        btDetailIncome.setOnClickListener(new OnClickListener()
        {
			@Override
			public void onClick(View v)
			{
				// TODO Auto-generated method stub
				
			}
        });
    }
}